home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume4 / se / part8 < prev    next >
Encoding:
Internet Message Format  |  1986-11-30  |  41.0 KB

  1. From: Jeff Lee <talcott!seismo!gatech!jeff>
  2. Subject: Georgia Tech 'se' screen editor (Part 8 of 8)
  3. Keywords: Software Tools, Yet Another Screen Editor, Both BSD and USG
  4. Newsgroups: mod.sources
  5. Approved: jpn@panda.UUCP
  6.  
  7. Mod.sources:  Volume 4, Issue 89
  8. Submitted by: Jeff Lee <seismo!gatech!jeff>
  9.  
  10. #! /bin/sh
  11. # This is a shell archive, meaning:
  12. # 1. Remove everything above the #! /bin/sh line.
  13. # 2. Save the resulting text in a file.
  14. # 3. Execute the file with /bin/sh (not csh) to create:
  15. #    o
  16. #    o-
  17. #    oa
  18. #    oc
  19. #    od
  20. #    of
  21. #    og
  22. #    oh
  23. #    oi
  24. #    ok
  25. #    ol
  26. #    olm
  27. #    om
  28. #    op
  29. #    os
  30. #    ot
  31. #    ou
  32. #    ov
  33. #    ow
  34. #    ox
  35. #    oy
  36. #    oz
  37. #    p
  38. #    pat
  39. #    pat_swt
  40. #    patex
  41. #    patex_swt
  42. #    q
  43. #    quote
  44. #    r
  45. #    rpt
  46. #    s
  47. #    s_swt
  48. #    scan
  49. #    scan_swt
  50. #    serc
  51. #    shell
  52. #    shell_swt
  53. #    specl
  54. #    t
  55. #    t_swt
  56. #    termchar
  57. #    tilde
  58. #    u
  59. #    v
  60. #    w
  61. #    x
  62. #    y
  63. #    y_swt
  64. #    z
  65. # This archive created: Tue Apr 29 10:47:00 1986
  66. export PATH; PATH=/bin:/usr/bin:$PATH
  67. #######
  68. # the following added by hand since the help files were so large
  69. if test ! -d 'se_h'
  70. then
  71.     echo shar: "creating directory 'se_h'"
  72.     mkdir 'se_h'
  73. fi
  74. echo shar: "entering directory 'se_h'"
  75. cd 'se_h'
  76. #######
  77. echo shar: "extracting 'o'" '(629 characters)'
  78. if test -f 'o'
  79. then
  80.     echo shar: "will not over-write existing file 'o'"
  81. else
  82. cat << \SHAR_EOF > 'o'
  83.         o -- Option
  84.  
  85.         The "o" (option) command allows any  of several variables  that
  86.         affect  the  editor's  behavior  to   be  set  or  tested.  The
  87.         behavior of the "o"  command depends upon what is  typed  after
  88.         the "o".
  89.  
  90.         To  find out about  specific options, type "hoa", "hoc", "hod",
  91.         "hof", "hog", "hoh", "hoi", "hok", "hol", "holm", "hom", "hop",
  92.         "hos", "hot", "hou", "hov", "how", "hox", "hoy", "hoz", or "ho-".
  93.  
  94.         To  see how to set options with the  command that invokes 'se',
  95.         type "hargs".
  96.  
  97.         To return to the command directory, type "hcomdir".
  98. SHAR_EOF
  99. fi
  100. echo shar: "extracting 'o-'" '(830 characters)'
  101. if test -f 'o-'
  102. then
  103.     echo shar: "will not over-write existing file 'o-'"
  104. else
  105. cat << \SHAR_EOF > 'o-'
  106.         o-  -- Option - (dash)
  107.  
  108.                default range             syntax
  109.                   1,$                     o-[line number]
  110.  
  111.         The "-" option controls the placement on the screen of  a  row
  112.         of dashes, which normally is off the screen above the top line
  113.         or  hiding  behind  the  bottom line of the help display.  The
  114.         "window" through which you look at the edit buffer is the por-
  115.         tion of the screen BELOW the  row  of  dashes  but  above  the
  116.         command  line  (when  it exists) or status line at the bottom.
  117.         "o-" alone puts the row of dashes above  the  top  line;  "o-"
  118.         followed  by a SINGLE TERM line number puts it in place of the
  119.         line referred to on the screen, if possible.
  120.  
  121.         For general information about the option command, type "ho".
  122. SHAR_EOF
  123. fi
  124. echo shar: "extracting 'oa'" '(876 characters)'
  125. if test -f 'oa'
  126. then
  127.     echo shar: "will not over-write existing file 'oa'"
  128. else
  129. cat << \SHAR_EOF > 'oa'
  130.         oa -- Option Absolute
  131.  
  132.                default range             syntax
  133.                    1,$                     oa
  134.  
  135.         "oa" toggles the Absolute line numbers flag, which  determines
  136.         whether  the numbers in the left margin shall be absolute line
  137.         numbers, or the (usually capital) letters that refer to  lines
  138.         by  the  position  at  which  they  are being displayed on the
  139.         screen.  In any case, the current line is always shown as  "."
  140.         (with  the "->" arrow to make it easy to find), the first line
  141.         in the buffer is labeled "1", and  the  last,  "$"  (when  not
  142.         ".").   Lines  can  be  referred  to  by  letter ONLY when the
  143.         letters appear in the left margin.
  144.  
  145.         For general information about the option command, type "ho".
  146.         See also "hln" for how lines can be referred to in commands.
  147. SHAR_EOF
  148. fi
  149. echo shar: "extracting 'oc'" '(706 characters)'
  150. if test -f 'oc'
  151. then
  152.     echo shar: "will not over-write existing file 'oc'"
  153. else
  154. cat << \SHAR_EOF > 'oc'
  155.         oc -- Option Case
  156.  
  157.                default range             syntax
  158.                    1,$                     oc
  159.  
  160.         The "c" (case) option toggles the same case mapping flag  that
  161.         is  toggled  by the CTRL-Z control character, but also changes
  162.         the marginal line letters to lower case (or back to upper), so
  163.         that typing a shifted letter will still refer to a  line,  and
  164.         typing an unshifted letter will do for a command letter.  This
  165.         is  useful for handling large amounts of upper case text, such
  166.         as Fortran programs.
  167.  
  168.         For general information about the option command, type "ho".
  169.         See also "hoa".
  170.         Fortraners see also "hof".
  171. SHAR_EOF
  172. fi
  173. echo shar: "extracting 'od'" '(785 characters)'
  174. if test -f 'od'
  175. then
  176.     echo shar: "will not over-write existing file 'od'"
  177. else
  178. cat << \SHAR_EOF > 'od'
  179.         od -- Option Delete
  180.  
  181.                default range             syntax
  182.                   1,$                     od[<|>]
  183.  
  184.         The "d" option is for Delete direction.  Typing "od<" fixes it
  185.         so  that  after  you  give  a "d" command, the line BEFORE the
  186.         group of lines deleted becomes the current line  (.).   Typing
  187.         "od>"  resets  the  normal behavior, in which the current line
  188.         pointer is always positioned AFTER the group of lines  deleted
  189.         by  the "d" command, if possible (Deleting the last line makes
  190.         the new last  line  the  current  line).   Typing  "od"  alone
  191.         queries  the  delete  direction flag, causing ">" or "<" to be
  192.         displayed.
  193.  
  194.         For general information about the option command, type "ho".
  195. SHAR_EOF
  196. fi
  197. echo shar: "extracting 'of'" '(579 characters)'
  198. if test -f 'of'
  199. then
  200.     echo shar: "will not over-write existing file 'of'"
  201. else
  202. cat << \SHAR_EOF > 'of'
  203.  
  204.         of -- Option Fortran
  205.  
  206.                default range             syntax
  207.                   1,$                      of
  208.  
  209.         Typing  "of"  turns  on  a  package  of  options  considered
  210.         convenient for editing Fortran.  The warning column  is  set
  211.         to  72,  and tab spacing is set to 7 +3 so that tabbing once
  212.         gets you to column 7.   Tab  expansion  is  also  turned  on
  213.         (XTABS).   To  undo  "of" it is necessary to type "ot+3" and
  214.         "ox".
  215.  
  216.         For general information about the option command, type "ho".
  217.         See also "oa".
  218.  
  219. SHAR_EOF
  220. fi
  221. echo shar: "extracting 'og'" '(719 characters)'
  222. if test -f 'og'
  223. then
  224.     echo shar: "will not over-write existing file 'og'"
  225. else
  226. cat << \SHAR_EOF > 'og'
  227.  
  228.         og -- Option Global
  229.  
  230.                default range             syntax
  231.                   1,$                     og
  232.  
  233.         The "g" option controls the behavior of the Substitute  command
  234.         when it  is under the control of a Global  command.  Initially,
  235.         if a substitute inside a global command fails, se will not con-
  236.         tinue with  the rest of the lines  which might succeed. If "og"
  237.         is given, then  the global substitute  will continue, and lines
  238.         which failed will not be affected. Succesive "og" commands will
  239.         toggle this behavior.  An explanatory message is placed in  the
  240.         status line.
  241.  
  242.         For general information about the option command, type "ho".
  243. SHAR_EOF
  244. fi
  245. echo shar: "extracting 'oh'" '(774 characters)'
  246. if test -f 'oh'
  247. then
  248.     echo shar: "will not over-write existing file 'oh'"
  249. else
  250. cat << \SHAR_EOF > 'oh'
  251.  
  252.         oh -- Option Hardware Insert/Delete
  253.  
  254.               default range             syntax
  255.                  1,$                     oh
  256.  
  257.         The   "h"   option   controls   the  use  of  hardware  line
  258.         insert/delete on terminals that have  that  capability.   By
  259.         default,  line  insert/delete will be used if available.  It
  260.         is occasionally useful to turn this option  off  when  using
  261.         the editor on a terminal which can't keep up, or if the com-
  262.         munications  lines may be scrambling the control characters.
  263.         Each successive "oh" merely  toggles  a  switch  within  the
  264.         editor.   An  explanatory  message  is  placed in the status
  265.         line.
  266.  
  267.         For general information about the option command, type "ho".
  268. SHAR_EOF
  269. fi
  270. echo shar: "extracting 'oi'" '(537 characters)'
  271. if test -f 'oi'
  272. then
  273.     echo shar: "will not over-write existing file 'oi'"
  274. else
  275. cat << \SHAR_EOF > 'oi'
  276.  
  277.         oi -- Option Indent
  278.  
  279.                 default range           syntax
  280.                     1, $                  oi[a | <indent>]
  281.  
  282.         "oi" selects the indent value for lines  inserted with "a" and
  283.         "i" commands (initially 1). "a" selects auto-indent which sets
  284.         the indent to the value  which equals the indent of the previ-
  285.         ous line.  If  neither  "a" nor  "<indent>" is  specified, the
  286.         current value of indent is displayed.
  287.  
  288.         For general information about the option command, type "ho".
  289. SHAR_EOF
  290. fi
  291. echo shar: "extracting 'ok'" '(460 characters)'
  292. if test -f 'ok'
  293. then
  294.     echo shar: "will not over-write existing file 'ok'"
  295. else
  296. cat << \SHAR_EOF > 'ok'
  297.         ok -- Option OK
  298.  
  299.         default range                    syntax
  300.           1,$                             ok
  301.  
  302.         Typing  "ok"  simply tests the flag that indicates whether the
  303.         edit buffer has been saved since the last change was  made  to
  304.         it.   "Saved"  or  "Not saved" is accordingly displayed in the
  305.         remark field at the bottom of the screen.
  306.  
  307.         To return to the option directory, type "ho".
  308.         See also "hq".
  309. SHAR_EOF
  310. fi
  311. echo shar: "extracting 'ol'" '(646 characters)'
  312. if test -f 'ol'
  313. then
  314.     echo shar: "will not over-write existing file 'ol'"
  315. else
  316. cat << \SHAR_EOF > 'ol'
  317.         ol -- Option Line
  318.  
  319.                default range             syntax
  320.                  1,$                      ol[$ | . | # | BLANK]
  321.  
  322.         The  "l"  option  is the Line number monitoring option. Typing
  323.         "l" followed by "$" constantly displays the last  line  number
  324.         in the file (current length of the file).  Typing "l" followed
  325.         by  "."   constantly  displays  the current line number.  This
  326.         usually make sense only in conjunction with the  "oa"  option,
  327.         that uses letters for line names.
  328.  
  329.         For general information about the option command, type "ho".
  330.         See also:  "hoa" and "hequal".
  331. SHAR_EOF
  332. fi
  333. echo shar: "extracting 'olm'" '(664 characters)'
  334. if test -f 'olm'
  335. then
  336.     echo shar: "will not over-write existing file 'olm'"
  337. else
  338. cat << \SHAR_EOF > 'olm'
  339.  
  340.         olm -- Option Line Margin
  341.  
  342.         default range                           syntax
  343.            1,$                                   olm[<col>]
  344.         
  345.         Sets the left margin to <col>  which must be a positive integer.
  346.         This shifts the entire screen to  the left; the characters  that
  347.         were in columns 1  through <col> - 1  will  not be visible.  You
  348.         may continue editing in the normal fashion. To reset your screen
  349.         to normal, enter the command "olm 1".  If <col> is omitted,  the
  350.         current left margin column is displayed in the status line.
  351.  
  352.         For general information about the options command, type "ho".
  353. SHAR_EOF
  354. fi
  355. echo shar: "extracting 'om'" '(733 characters)'
  356. if test -f 'om'
  357. then
  358.     echo shar: "will not over-write existing file 'om'"
  359. else
  360. cat << \SHAR_EOF > 'om'
  361.  
  362.         om -- Option Mail
  363.  
  364.                default range             syntax
  365.                   1,$                     om
  366.  
  367.         "om" is an option which allows the user control   over  whether
  368.         or  not he will  be  notified  about pending mail.  Typing "om"
  369.         simply toggles the switch controlling notification.
  370.             The default is for the editor to notify the  user about his
  371.         mail.  The  mail  box  which the editor uses is taken from  the
  372.         environment variable MAIL. If the mail box exists, but is empty
  373.         the user will not be notified.
  374.  
  375.         To  read your mail, use a shell escape on whichever of the fol-
  376.         lowing programs is appropriate:
  377.  
  378.                 Mail     msg     mail
  379. SHAR_EOF
  380. fi
  381. echo shar: "extracting 'op'" '(778 characters)'
  382. if test -f 'op'
  383. then
  384.     echo shar: "will not over-write existing file 'op'"
  385. else
  386. cat << \SHAR_EOF > 'op'
  387.  
  388.         op -- Option Pattern
  389.  
  390.         default range                   syntax
  391.             1,$                           op
  392.  
  393.         "op"  converts to  or from SWT  compatibility mode.  Se was originally
  394.         written  for  the Georia  Tech  Software  Tools  Subsystem, which uses
  395.         slightly different characters  for  describing  patterns.  To ease the
  396.         transition for users familiar with the original version, se provides a
  397.         Software Tools compatibility mode.  The current default is to use Unix
  398.         style patterns and commands.  When in Software Tools mode, the message
  399.         "SWT" appears  in the status line.
  400.  
  401.         Do  a "man se" from the shell for a complete  description of the  dif-
  402.         ferences when in SWT mode and when in Unix mode.
  403. SHAR_EOF
  404. fi
  405. echo shar: "extracting 'os'" '(613 characters)'
  406. if test -f 'os'
  407. then
  408.     echo shar: "will not over-write existing file 'os'"
  409. else
  410. cat << \SHAR_EOF > 'os'
  411.  
  412.         os --- option source
  413.  
  414.         default range           syntax
  415.            1,$       s[as | c | d | data | f | h | n | nr | nroff | p | r | s]
  416.         
  417.         This option sets other options for case, tabs, etc.
  418.             as, s   -- assembler files   c          -- C files
  419.             d, data -- data files        f          -- fortran files
  420.             h       -- header files      n,nr,nroff -- nroff source files
  421.             p       -- pascal files      r          -- ratfor files
  422.         
  423.         See the manual page for details.
  424.  
  425.         For general information about the options command, type "ho".
  426. SHAR_EOF
  427. fi
  428. echo shar: "extracting 'ot'" '(710 characters)'
  429. if test -f 'ot'
  430. then
  431.     echo shar: "will not over-write existing file 'ot'"
  432. else
  433. cat << \SHAR_EOF > 'ot'
  434.         ot -- Option Tab
  435.  
  436.         range                        syntax
  437.          1,$                ot[[[+]integer [+]integer]]
  438.  
  439.  
  440.         "ot+3" sets the spacing between tab stops.  The  default  value
  441.         when  'se'  comes  up  is 3.  Typing "ot" by itself causes the
  442.         current value of the parameter to be displayed.  As an example
  443.         of how tabs are spaced out, if ot+6 is in effect, tab stops are
  444.         at 7, 13, 19, etc.
  445.         Variable  tabs can be set by typing "ot 5 13 24 ..  ".  if you
  446.         do not prefer equally spaced ones.
  447.  
  448.         See also "hof".
  449.         For general information about the option command, type "ho".
  450.         For more about the use of tab stops, type "hmotion".
  451. SHAR_EOF
  452. fi
  453. echo shar: "extracting 'ou'" '(823 characters)'
  454. if test -f 'ou'
  455. then
  456.     echo shar: "will not over-write existing file 'ou'"
  457. else
  458. cat << \SHAR_EOF > 'ou'
  459.         ou -- Option Unprintable
  460.  
  461.                default range             syntax
  462.                  1,$                     ou[character]
  463.  
  464.         The  "u"  option  is  for  monitoring  unprintable characters.
  465.         Typing "ou" by itself will return the current  character  used
  466.         to display unprintable characters.  If it is ' ' (blank), then
  467.         unprintable  characters  are  not  checked and may mess up the
  468.         display.  Typing "oux" where "x" is a printable character will
  469.         turn on  character  checking  and  display  "x"  everytime  an
  470.         unprintable  character is encountered.  Unprintable characters
  471.         are not disturbed in the file, but can be "edited" out.
  472.  
  473.         See also hccmisc for refreshing the display.
  474.  
  475.         For general information about the option command, type "ho".
  476. SHAR_EOF
  477. fi
  478. echo shar: "extracting 'ov'" '(575 characters)'
  479. if test -f 'ov'
  480. then
  481.     echo shar: "will not over-write existing file 'ov'"
  482. else
  483. cat << \SHAR_EOF > 'ov'
  484.         ov -- oVerlay Option
  485.  
  486.                default range             syntax
  487.                   1,$                    ov[integer]
  488.  
  489.         The "v" option is the  overlay  column  number.   Typing  "ov"
  490.         followed  by  a  space  and  a number sets the column that the
  491.         cursor will be positioned at when  issuing  the  "v"  command.
  492.         Typing "ov $" will position the cursor at the end of the line.
  493.         Typing "ov" by itself will display the current value.
  494.  
  495.         See also hmotion.
  496.  
  497.         For general information about the option command, type "ho".
  498. SHAR_EOF
  499. fi
  500. echo shar: "extracting 'ow'" '(658 characters)'
  501. if test -f 'ow'
  502. then
  503.     echo shar: "will not over-write existing file 'ow'"
  504. else
  505. cat << \SHAR_EOF > 'ow'
  506.         ow -- Option Warning
  507.  
  508.                default range              syntax
  509.                  1,$                      ow[integer]
  510.  
  511.         The "w" option is the  Warning  column  number.   Typing  "ow"
  512.         followed by a number sets the warning column threshold; simply
  513.         typing  "ow"  causes  its current value to be displayed.  When
  514.         you are about to type into a column of equal or greater number
  515.         than the warning column, the number  of  the  column  you  are
  516.         about  to type into is displayed on the bottom line along with
  517.         the string "col  ".
  518.  
  519.         For general information about the option command, type "ho".
  520. SHAR_EOF
  521. fi
  522. echo shar: "extracting 'ox'" '(624 characters)'
  523. if test -f 'ox'
  524. then
  525.     echo shar: "will not over-write existing file 'ox'"
  526. else
  527. cat << \SHAR_EOF > 'ox'
  528.             ox -- toggle tab compression/expansion
  529.  
  530.             default range           syntax
  531.                 .                       ox
  532.  
  533.  
  534.             "ox" turns compression of tabs on or off. If a file
  535.             has tabs in it, they will be  expanded  if compres-
  536.             sion is on. Otherwise they will be left alone,  and
  537.             will show up as the default unprintable character.
  538.  
  539.             The message "XTABS" will be displayed in the status
  540.             line if tab compression is on.
  541.  
  542.             Type "hdir" to go back to the general help directory.
  543.             Type "ho" for help on the option command.
  544. SHAR_EOF
  545. fi
  546. echo shar: "extracting 'oy'" '(749 characters)'
  547. if test -f 'oy'
  548. then
  549.     echo shar: "will not over-write existing file 'oy'"
  550. else
  551. cat << \SHAR_EOF > 'oy'
  552.  
  553.         oy --- option encrYption 
  554.  
  555.         default range                                   syntax
  556.            1,$                                            oy[key]
  557.         
  558.         This option allows you to edit encrypted files. oy followed by a key
  559.         will cause e, r, and w, commands to encrypt  and decrypt files using
  560.         crypt(1).  oy will toggle the current  encryption setting.  If there
  561.         is  no current key, se will ask you for one. If encryption is turned
  562.         on, it will be  turned off.   Encryption in indicated by the message
  563.         "ENCRYPT" in the status line. The key is never shown on your screen.
  564.  
  565.         Type "ho" for help on the option command.
  566.         Type "hdir" to go back to the general help directory.
  567. SHAR_EOF
  568. fi
  569. echo shar: "extracting 'oz'" '(447 characters)'
  570. if test -f 'oz'
  571. then
  572.     echo shar: "will not over-write existing file 'oz'"
  573. else
  574. cat << \SHAR_EOF > 'oz'
  575.  
  576.         oz -- option sleep (zzzz's)
  577.  
  578.         default range           syntax
  579.           1,$                     oz
  580.  
  581.         If you are running "sh", this option has absolutely no effect at
  582.         all.  If you are running the "csh", this option will suspend  se
  583.         in the background.  Se will issue  a warning  if  the buffer has
  584.         not been saved, when this is done.
  585.  
  586.         For general information about the option command, type "ho".
  587. SHAR_EOF
  588. fi
  589. echo shar: "extracting 'p'" '(642 characters)'
  590. if test -f 'p'
  591. then
  592.     echo shar: "will not over-write existing file 'p'"
  593. else
  594. cat << \SHAR_EOF > 'p'
  595.           p    -- Print/Previous screen command
  596.  
  597.                default range           syntax
  598.                see below               [range] p
  599.  
  600.         "p"  prints  a  range of lines or the previous screen (when no
  601.         range is provided).  The line pointer is set to the last  line
  602.         printed  (a  new  screen  may  be printed).  When the previous
  603.         screen is printed, the first line on the  current  screen  be-
  604.         comes  the  line  pointer, usually the last line on the screen
  605.         (exception is when the first page is printed).
  606.  
  607.         To return to the command directory, type "hcomdir."
  608.         See also "hspecl"
  609. SHAR_EOF
  610. fi
  611. echo shar: "extracting 'pat'" '(930 characters)'
  612. if test -f 'pat'
  613. then
  614.     echo shar: "will not over-write existing file 'pat'"
  615. else
  616. cat << \SHAR_EOF > 'pat'
  617.         A PATTERN is a string of characters that specifies  a  set  of
  618.         possible  strings  of  characters  that  are said to MATCH the
  619.         pattern.  Most characters in patterns  stand  for  themselves,
  620.         but   there   are   metacharacters:   "."   that  matches  any
  621.         character, "*" that along with the previous character, matches
  622.         any number of repetitions of  it  (including  none),  "^"  for
  623.         beginning  of  line,  "$"  for  end of line, and characters in
  624.         brackets "[]" to match any of  the  characters.   The  special
  625.         sense  of  metacharacters  and  of the delimiters in which the
  626.         pattern is enclosed can always be  turned  off  by  preceeding
  627.         them with the escape character "\".
  628.  
  629.         See also "hs", "hg", "hx" for uses of patterns.
  630.         For the use of patterns in line numbers, type "hscan".
  631.         For examples of pattern matches, type "hpatex".
  632. SHAR_EOF
  633. fi
  634. echo shar: "extracting 'pat_swt'" '(930 characters)'
  635. if test -f 'pat_swt'
  636. then
  637.     echo shar: "will not over-write existing file 'pat_swt'"
  638. else
  639. cat << \SHAR_EOF > 'pat_swt'
  640.         A PATTERN is a string of characters that specifies  a  set  of
  641.         possible  strings  of  characters  that  are said to MATCH the
  642.         pattern.  Most characters in patterns  stand  for  themselves,
  643.         but   there   are   metacharacters:   "?"   that  matches  any
  644.         character, "*" that along with the previous character, matches
  645.         any number of repetitions of  it  (including  none),  "%"  for
  646.         beginning  of  line,  "$"  for  end of line, and characters in
  647.         brackets "[]" to match any of  the  characters.   The  special
  648.         sense  of  metacharacters  and  of the delimiters in which the
  649.         pattern is enclosed can always be  turned  off  by  preceeding
  650.         them with the escape character "@".
  651.  
  652.         See also "hs", "hg", "hx" for uses of patterns.
  653.         For the use of patterns in line numbers, type "hscan".
  654.         For examples of pattern matches, type "hpatex".
  655. SHAR_EOF
  656. fi
  657. echo shar: "extracting 'patex'" '(485 characters)'
  658. if test -f 'patex'
  659. then
  660.     echo shar: "will not over-write existing file 'patex'"
  661. else
  662. cat << \SHAR_EOF > 'patex'
  663.          PATTERN       MATCHES     DOESN'T MATCH
  664.  
  665.         "test"         "testfoo"   "foobar"
  666.         "test$"        "footest"   "test "
  667.         "$"            anything
  668.         "ab*c"         "abbbbbbc"  "bbbbbbc"
  669.         "ab*c"         "ac cur"    "ab*c"
  670.         "^abc"         "abcac"     "bcabc"
  671.         "abc^"         "abc^d"     "ab*c"
  672.         "a[bcd]*e"     "abddceab"  "eeeaaa"
  673.         "a[bcd]*e"     "aaaeee"    "bcdbcde"
  674.  
  675.         For general info about patterns, type "hpat".
  676. SHAR_EOF
  677. fi
  678. echo shar: "extracting 'patex_swt'" '(485 characters)'
  679. if test -f 'patex_swt'
  680. then
  681.     echo shar: "will not over-write existing file 'patex_swt'"
  682. else
  683. cat << \SHAR_EOF > 'patex_swt'
  684.          PATTERN       MATCHES     DOESN'T MATCH
  685.  
  686.         "test"         "testfoo"   "foobar"
  687.         "test$"        "footest"   "test "
  688.         "$"            anything
  689.         "ab*c"         "abbbbbbc"  "bbbbbbc"
  690.         "ab*c"         "ac cur"    "ab*c"
  691.         "%abc"         "abcac"     "bcabc"
  692.         "abc%"         "abc%d"     "ab*c"
  693.         "a[bcd]*e"     "abddceab"  "eeeaaa"
  694.         "a[bcd]*e"     "aaaeee"    "bcdbcde"
  695.  
  696.         For general info about patterns, type "hpat".
  697. SHAR_EOF
  698. fi
  699. echo shar: "extracting 'q'" '(514 characters)'
  700. if test -f 'q'
  701. then
  702.     echo shar: "will not over-write existing file 'q'"
  703. else
  704. cat << \SHAR_EOF > 'q'
  705.           q   --  Quit command
  706.  
  707.                default range           syntax
  708.                    n/a                    q
  709.  
  710.         "q" is used to quit the screen editor  and  return  to  system
  711.         command  level.  If changes have been made to the buffer since
  712.         the last write ("w"), you will be asked if you really want  to
  713.         quit.   If so, just do another "q" command (RETURN is all that
  714.         required).
  715.  
  716.  
  717.         To return to the command directory, type "hcomdir."
  718.         See also:  "hok".
  719. SHAR_EOF
  720. fi
  721. echo shar: "extracting 'quote'" '(340 characters)'
  722. if test -f 'quote'
  723. then
  724.     echo shar: "will not over-write existing file 'quote'"
  725. else
  726. cat << \SHAR_EOF > 'quote'
  727.  
  728.         ' --- global on markname
  729.  
  730.         default range                   syntax
  731.           1,$                             '<m>command
  732.         
  733.         Similar to the "g" prefix, except that "command" is performed
  734.         for all lines in the range that have the mark name <m>.
  735.  
  736.         To return to the command directory, type "hcomdir".
  737. SHAR_EOF
  738. fi
  739. echo shar: "extracting 'r'" '(500 characters)'
  740. if test -f 'r'
  741. then
  742.     echo shar: "will not over-write existing file 'r'"
  743. else
  744. cat << \SHAR_EOF > 'r'
  745.           r    -- Read command
  746.  
  747.                default range           syntax
  748.                       .           r [file name]
  749.         "r" is used to read a file into  the  buffer  at  (after)  the
  750.         named  place  (range field).  If no file name is provided, the
  751.         current  file name (as  identified by the "f" command) is used.
  752.         Se expand environment variables occuring in file names.
  753.  
  754.  
  755.         To return to the command directory, type "hcomdir."
  756.         See also:  "hf" and "he".
  757. SHAR_EOF
  758. fi
  759. echo shar: "extracting 'rpt'" '(523 characters)'
  760. if test -f 'rpt'
  761. then
  762.     echo shar: "will not over-write existing file 'rpt'"
  763. else
  764. cat << \SHAR_EOF > 'rpt'
  765.         The CTRL-F ("Funny Return") key  can  be  used  for  repeating
  766.         lines while in Append Mode or in Command Mode.  Typing it will
  767.         cause   the   line  to  be  terminated  without  chopping  any
  768.         characters off, and will set a flag that will inhibit  erasure
  769.         of  the  command  after it is completed, so that the same line
  770.         may be easily re- entered.
  771.  
  772.  
  773.         Type "htermchar" for info about other termination characters.
  774.         Type "habt" to see what CTRL-F does in overlay mode.
  775. SHAR_EOF
  776. fi
  777. echo shar: "extracting 's'" '(776 characters)'
  778. if test -f 's'
  779. then
  780.     echo shar: "will not over-write existing file 's'"
  781. else
  782. cat << \SHAR_EOF > 's'
  783.           s    -- Substitute command
  784.  
  785.                default range           syntax
  786.                    .,.           s/change-this/to-this[/][g]
  787.  
  788.         The pattern "change-this" is matched on each line  within  the
  789.         range  and the string "to-this" is substituted for it.  If [g]
  790.         is used, all occurrences  of  the  "change-this"  pattern  are
  791.         changed.   If  "change-this" is empty, the most recent pattern
  792.         from this command (e.g.  within the range field) or a previous
  793.         command is used.  If "to-this" is a '%', the previous replace-
  794.         ment pattern is used. The "/" may be any character. The trail-
  795.         ing delimiter is optional.
  796.  
  797.         To return to the command directory, type "hcomdir."
  798.         See also:  "hln" and "hpat".
  799. SHAR_EOF
  800. fi
  801. echo shar: "extracting 's_swt'" '(776 characters)'
  802. if test -f 's_swt'
  803. then
  804.     echo shar: "will not over-write existing file 's_swt'"
  805. else
  806. cat << \SHAR_EOF > 's_swt'
  807.           s    -- Substitute command
  808.  
  809.                default range           syntax
  810.                    .,.           s/change-this/to-this[/][g]
  811.  
  812.         The pattern "change-this" is matched on each line  within  the
  813.         range  and the string "to-this" is substituted for it.  If [g]
  814.         is used, all occurrences  of  the  "change-this"  pattern  are
  815.         changed.   If  "change-this" is empty, the most recent pattern
  816.         from this command (e.g.  within the range field) or a previous
  817.         command is used.  If "to-this" is a '&', the previous replace-
  818.         ment pattern is used. The "/" may be any character. The trail-
  819.         ing delimiter is optional.
  820.  
  821.         To return to the command directory, type "hcomdir."
  822.         See also:  "hln" and "hpat".
  823. SHAR_EOF
  824. fi
  825. echo shar: "extracting 'scan'" '(927 characters)'
  826. if test -f 'scan'
  827. then
  828.     echo shar: "will not over-write existing file 'scan'"
  829. else
  830. cat << \SHAR_EOF > 'scan'
  831.                      For line number syntax, type "hln".
  832.                    For details about PATTERNs, type "hpat".
  833.  
  834.         A line number term consisting of  a  PATTERN  between  slashes
  835.         causes  a  scan to begin with the line after the current line.
  836.         If the last line is encountered, the scan continues with  line
  837.         1.   The  current  line  is the last to be examined.  The line
  838.         referred to is the first line encountered  in  the  scan  that
  839.         contains  a  match  for  the  pattern.   If  the entire buffer
  840.         contains no match, then an error is flagged.  If  the  pattern
  841.         is  enclosed  in  question marks,  the  scan is in the reverse
  842.         direction and begins with the line  just  before  the  current
  843.         line,  and  wraps  around  to  the  last  line after line 1 is
  844.         examined.  ">" and "<" mark name searches proceed in the  same
  845.         wraparound fashion.
  846. SHAR_EOF
  847. fi
  848. echo shar: "extracting 'scan_swt'" '(927 characters)'
  849. if test -f 'scan_swt'
  850. then
  851.     echo shar: "will not over-write existing file 'scan_swt'"
  852. else
  853. cat << \SHAR_EOF > 'scan_swt'
  854.                      For line number syntax, type "hln".
  855.                    For details about PATTERNs, type "hpat".
  856.  
  857.         A line number term consisting of  a  PATTERN  between  slashes
  858.         causes  a  scan to begin with the line after the current line.
  859.         If the last line is encountered, the scan continues with  line
  860.         1.   The  current  line  is the last to be examined.  The line
  861.         referred to is the first line encountered  in  the  scan  that
  862.         contains  a  match  for  the  pattern.   If  the entire buffer
  863.         contains no match, then an error is flagged.  If  the  pattern
  864.         is  enclosed  in  back slashes,    the  scan is in the reverse
  865.         direction and begins with the line  just  before  the  current
  866.         line,  and  wraps  around  to  the  last  line after line 1 is
  867.         examined.  ">" and "<" mark name searches proceed in the  same
  868.         wraparound fashion.
  869. SHAR_EOF
  870. fi
  871. echo shar: "extracting 'serc'" '(617 characters)'
  872. if test -f 'serc'
  873. then
  874.     echo shar: "will not over-write existing file 'serc'"
  875. else
  876. cat << \SHAR_EOF > 'serc'
  877.         serc -- $HOME/.serc -- Se Initialization File
  878.         
  879.         The file $HOME/.serc, if it exists, is read when se starts up.
  880.         If a line begins with a '#', it is treated as a comment and is
  881.         ignored.  It is useful for  setting  personal options  without
  882.         the user having to type them in  on the command line  or use a
  883.         special shell file or alias. Here is a sample .serc file:
  884.  
  885.             # turn on unix mode, tabs every 8 columns, auto indent
  886.             opu
  887.             ot+8
  888.             oia
  889.  
  890.     Command line options ALWAYS override any options set by commands
  891.     in the .serc file.
  892. SHAR_EOF
  893. fi
  894. echo shar: "extracting 'shell'" '(865 characters)'
  895. if test -f 'shell'
  896. then
  897.     echo shar: "will not over-write existing file 'shell'"
  898. else
  899. cat << \SHAR_EOF > 'shell'
  900.  
  901.         ! --- shell escape
  902.  
  903.         default range                            syntax
  904.                 1,$                      ![<Unix command>]
  905.  
  906.         The user's choice of shell is taken from the $SHELL environment vari-
  907.         able and used to execute <Unix command> if it is present.  Otherwise,
  908.         an  interactive shell is created. A leading ! is replaced by the pre-
  909.         vious  shell  command.  Thus !!  executes  the previous  command.  An
  910.         unescaped  % is replaced  by  the saved  file name. An expanded shell
  911.         command is echoed  before it is  executed. After an interactive shell
  912.         exits, the screen is immediately  redrawn. If a  command was run, the
  913.         results are left on the  screen,  and the user must  type a return to
  914.         redraw the editing window.
  915.  
  916.         To return to the command directory, type "hcomdir".
  917. SHAR_EOF
  918. fi
  919. echo shar: "extracting 'shell_swt'" '(865 characters)'
  920. if test -f 'shell_swt'
  921. then
  922.     echo shar: "will not over-write existing file 'shell_swt'"
  923. else
  924. cat << \SHAR_EOF > 'shell_swt'
  925.  
  926.         ~ --- shell escape
  927.  
  928.         default range                            syntax
  929.                 1,$                      ~[<Unix command>]
  930.  
  931.         The user's choice of shell is taken from the $SHELL environment vari-
  932.         able and used to execute <Unix command> if it is present.  Otherwise,
  933.         an  interactive shell is created. A leading ! is replaced by the pre-
  934.         vious  shell  command.  Thus ~!  executes  the previous  command.  An
  935.         unescaped  % is replaced  by  the saved  file name. An expanded shell
  936.         command is echoed  before it is  executed. After an interactive shell
  937.         exits, the screen is immediately  redrawn. If a  command was run, the
  938.         results are left on the  screen,  and the user must  type a return to
  939.         redraw the editing window.
  940.  
  941.         To return to the command directory, type "hcomdir".
  942. SHAR_EOF
  943. fi
  944. echo shar: "extracting 'specl'" '(737 characters)'
  945. if test -f 'specl'
  946. then
  947.     echo shar: "will not over-write existing file 'specl'"
  948. else
  949. cat << \SHAR_EOF > 'specl'
  950.         The "=" command displays the last  line  number  in  the  line
  951.         number  list  (default  ".")  as  a  number.  For example, "="
  952.         prints the line number of the current line, or "$=" prints the
  953.         line number of the last line (the number of lines).
  954.  
  955.         The ":"  command, with no preceeding line numbers,  moves  the
  956.         window  so that the next screenful of text is visible.  With a
  957.         line number, it makes the window begin at the referenced line.
  958.         The top line in the window becomes the current line.
  959.  
  960.         For general information about commands, type "hcom".
  961.         For a description of command syntax, type "hcomsyn".
  962.         To see a directory of the other commands, type "hcomdir".
  963. SHAR_EOF
  964. fi
  965. echo shar: "extracting 't'" '(361 characters)'
  966. if test -f 't'
  967. then
  968.     echo shar: "will not over-write existing file 't'"
  969. else
  970. cat << \SHAR_EOF > 't'
  971.  
  972.           t    -- To command
  973.                default range           syntax
  974.                          .,.           from-here,to-here t after-here
  975.  
  976.         Reproduce the block of lines identified by the range field of
  977.         the command and place them after the named line.
  978.  
  979.  
  980.         To return to the command directory, type "hcomdir."
  981.         See also:  "hm".
  982. SHAR_EOF
  983. fi
  984. echo shar: "extracting 't_swt'" '(431 characters)'
  985. if test -f 't_swt'
  986. then
  987.     echo shar: "will not over-write existing file 't_swt'"
  988. else
  989. cat << \SHAR_EOF > 't_swt'
  990.  
  991.           t    -- Transliterate command
  992.  
  993.                default range           syntax
  994.                    .,.           t/from-range/to-range[/]
  995.  
  996.         Characters   in   the  "from-range"  are  converted  to  their
  997.         corresponding characters in the "to-range".  The "/" may be an
  998.         character.  The trailing delimiter is optional.
  999.  
  1000.         To return to the command directory, type "hcomdir."
  1001.         See also:  "hs".
  1002. SHAR_EOF
  1003. fi
  1004. echo shar: "extracting 'termchar'" '(560 characters)'
  1005. if test -f 'termchar'
  1006. then
  1007.     echo shar: "will not over-write existing file 'termchar'"
  1008. else
  1009. cat << \SHAR_EOF > 'termchar'
  1010.                     Command Terminating Control Characters
  1011.  
  1012.         The  Carriage Return character terminates a command, but first
  1013.         erases any characters at and  to  the  right  of  the  cursor.
  1014.         CTRL-V,  on  the other hand, skips the cursor to the right end
  1015.         of the line, then terminates it.  The "Funny Return" character
  1016.         CTRL-F serves different purposes depending on what routine  is
  1017.         soliciting the command.
  1018.  
  1019.         For more about CTRL-F, see "habt" and "hrpt".
  1020.         The general control character directory is "hcc".
  1021. SHAR_EOF
  1022. fi
  1023. echo shar: "extracting 'tilde'" '(349 characters)'
  1024. if test -f 'tilde'
  1025. then
  1026.     echo shar: "will not over-write existing file 'tilde'"
  1027. else
  1028. cat << \SHAR_EOF > 'tilde'
  1029.  
  1030.         ~ --- exclude on markname
  1031.  
  1032.         default range                   syntax
  1033.           1,$                             ~<m>command
  1034.         
  1035.         Similar to the "x" prefix, except that  "command" is performed
  1036.         for all lines in the range that do not have the mark name <m>.
  1037.  
  1038.         To return to the command directory, type "hcomdir".
  1039. SHAR_EOF
  1040. fi
  1041. echo shar: "extracting 'u'" '(804 characters)'
  1042. if test -f 'u'
  1043. then
  1044.     echo shar: "will not over-write existing file 'u'"
  1045. else
  1046. cat << \SHAR_EOF > 'u'
  1047.      u    -- Undo command.
  1048.  
  1049.            default range                 syntax
  1050.                 .                         u[d]
  1051.  
  1052.         1.  "u" is used to undo modifications to  a  line  immediately
  1053.         after  changes  are  made.  E.g.  if you substituted "pat" for
  1054.         "hat" in a line, to reverse that operation immediately, simply
  1055.         type "u" (RETURN).
  1056.  
  1057.         2.  "ud" is used to restore a group of lines  that  have  been
  1058.         delete  E.g.   if  "n,md"  deletes lines n thru m, then if you
  1059.         position the curser to line n-1 and  issue  "ud"  the  deleted
  1060.         lines  will  appear.   (Or you can set the od toggle to od< so
  1061.         that the line pointer is automatically set to n-1.
  1062.  
  1063.         To return to the command directory, type "hcomdir."
  1064.         See also:  "hd" and "hod".
  1065. SHAR_EOF
  1066. fi
  1067. echo shar: "extracting 'v'" '(432 characters)'
  1068. if test -f 'v'
  1069. then
  1070.     echo shar: "will not over-write existing file 'v'"
  1071. else
  1072. cat << \SHAR_EOF > 'v'
  1073.           v    -- oVerlay command
  1074.  
  1075.                default range           syntax
  1076.                     .,.                   v
  1077.  
  1078.         Inline editing mode is entered using this command.  The curser
  1079.         is  positioned  at the column set by the "ov" command.  Inline
  1080.         editing may now be performed using control characters.
  1081.  
  1082.         To return to the command directory, type "hcomdir."
  1083.         See also:  "hcc" and "hmotion".
  1084. SHAR_EOF
  1085. fi
  1086. echo shar: "extracting 'w'" '(735 characters)'
  1087. if test -f 'w'
  1088. then
  1089.     echo shar: "will not over-write existing file 'w'"
  1090. else
  1091. cat << \SHAR_EOF > 'w'
  1092.           w    -- Write command
  1093.  
  1094.                default range                syntax
  1095.                          1,$        w[! | + | >] [file name]
  1096.  
  1097.         "w"  writes  the  buffer  to a file.  If issued without a file
  1098.         name the current file name is used.  If "f" was used to change
  1099.         the file name or if a file name was given, a new file will  be
  1100.         created and written unless the file already exits which causes
  1101.         a  warning.   The warning may be bypassed using "w!".  Options
  1102.         [+] or [>] mean to append to the file instead of writing  over
  1103.         it. Se expands environment variables occuring in file names.
  1104.  
  1105.         To return to the command directory, type "hcomdir."
  1106.         See also:   "hf", "hok".
  1107. SHAR_EOF
  1108. fi
  1109. echo shar: "extracting 'x'" '(579 characters)'
  1110. if test -f 'x'
  1111. then
  1112.     echo shar: "will not over-write existing file 'x'"
  1113. else
  1114. cat << \SHAR_EOF > 'x'
  1115.  
  1116.           x    -- Global exclude on pattern
  1117.  
  1118.                default range           syntax
  1119.                          1,$           x/pattern/command
  1120.  
  1121.         "x"  is  used  to perform an editing command on all lines that
  1122.         do not match the "pattern". "pattern" is any legal pattern and
  1123.         command is an editor command.  The "g" command is the converse
  1124.         of "x" and performs the command on all lines that do match the
  1125.         pattern.  The "/" may be any character.
  1126.  
  1127.         To return to the command directory, type "hcomdir."
  1128.         See also:  "hg" and "hpat".
  1129. SHAR_EOF
  1130. fi
  1131. echo shar: "extracting 'y'" '(430 characters)'
  1132. if test -f 'y'
  1133. then
  1134.     echo shar: "will not over-write existing file 'y'"
  1135. else
  1136. cat << \SHAR_EOF > 'y'
  1137.           y    -- translYterate command
  1138.  
  1139.                default range           syntax
  1140.                    .,.           y/from-range/to-range[/]
  1141.  
  1142.         Characters   in   the  "from-range"  are  converted  to  their
  1143.         corresponding characters in the "to-range".  The "/" may be an
  1144.         character.  The trailing delimiter is optional.
  1145.  
  1146.         To return to the command directory, type "hcomdir."
  1147.         See also:  "hs".
  1148. SHAR_EOF
  1149. fi
  1150. echo shar: "extracting 'y_swt'" '(363 characters)'
  1151. if test -f 'y_swt'
  1152. then
  1153.     echo shar: "will not over-write existing file 'y_swt'"
  1154. else
  1155. cat << \SHAR_EOF > 'y_swt'
  1156.  
  1157.           y    -- copY command
  1158.                default range           syntax
  1159.                          .,.           from-here,to-here y after-here
  1160.  
  1161.         Reproduce the block of lines identified by the range field of
  1162.         the command and place them after the named line.
  1163.  
  1164.  
  1165.         To return to the command directory, type "hcomdir."
  1166.         See also:  "hm".
  1167. SHAR_EOF
  1168. fi
  1169. echo shar: "extracting 'z'" '(679 characters)'
  1170. if test -f 'z'
  1171. then
  1172.     echo shar: "will not over-write existing file 'z'"
  1173. else
  1174. cat << \SHAR_EOF > 'z'
  1175.        z -- do special extended things
  1176.  
  1177.         default range               syntax
  1178.     lines must be given         line,line z <option> <stuff>
  1179.  
  1180.        The z command command is used for doing special extended
  1181.     things. Currently, the only option available is b, to  draw
  1182.     a box into the buffer. It works as follows:
  1183.  
  1184.          lin,lin zb<left>[,<right>][<char>]
  1185.  
  1186.     The two <lin>s  specify where in the buffer to put the  box,
  1187.     <left> and <right> tell which column to  which  column,  and
  1188.     the <char> is the character to use to draw the  box.  As  an
  1189.     example,
  1190.          .,.+4zb10,50*
  1191.     draws a box, OVER the text that is there. Try  it  on  some
  1192.     BLANK lines.
  1193. SHAR_EOF
  1194. fi
  1195. ######
  1196. echo shar: "done with directory 'se_h'"
  1197. cd ..
  1198. ######
  1199. exit 0
  1200. #    End of shell archive
  1201.  
  1202.